package com.open.system.domain.rsp;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class RspMobileInfoModel implements Comparable<RspMobileInfoModel> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	 String start_time;//通话时间
	 String init_type;//呼叫类型
	 String use_time;//通话时长（秒）
	 String place;//通话地点
	 String other_cell_phone;//对方号码
	 String cell_phone;//本机号码
	 String call_type;//通话类型
	public String getStart_time() {
		return start_time;
	}
	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}
	public String getInit_type() {
		return init_type;
	}
	public void setInit_type(String init_type) {
		this.init_type = init_type;
	}
	public String getUse_time() {
		return use_time;
	}
	public void setUse_time(String use_time) {
		this.use_time = use_time;
	}
	public String getPlace() {
		return place;
	}
	public void setPlace(String place) {
		this.place = place;
	}
	public String getOther_cell_phone() {
		return other_cell_phone;
	}
	public void setOther_cell_phone(String other_cell_phone) {
		this.other_cell_phone = other_cell_phone;
	}
	public String getCell_phone() {
		return cell_phone;
	}
	public void setCell_phone(String cell_phone) {
		this.cell_phone = cell_phone;
	}
	public String getCall_type() {
		return call_type;
	}
	public void setCall_type(String call_type) {
		this.call_type = call_type;
	}
	@Override
	public int compareTo(RspMobileInfoModel o) {
		DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date date1 = null;
		Date date2=null;
		try {
			date1 = df.parse(start_time);
			date2=df.parse(o.getStart_time());
		} catch (ParseException e) {
			e.printStackTrace();
		}
		int a=date2.compareTo(date1);
		return a;
	}
}
